<template>
<div>
  <h3>{{name}}</h3>
</div>
</template>


<script>
export default {
  name:"MusicDetail",
  // mounted() {
  //   console.log(this.$route)
  // },
  computed:{
    name(){
      const {id} = this.$route.params
      switch (id){
        case "1":
          return"周杰伦"
        case "2":
          return"林俊杰"
        case "3":
          return"陈奕迅"
        default:
          return "xxxx"
      }
    }
  }
}
</script>


<style></style>